import VueRouter from 'vue-router'
import HomeContainer from './components/home/Home.vue'
import HomeContent from './components/content/HomeContent.vue'
import LoginContainer from './components/login/login.vue'
import Register from './components/register/register.vue'


var router = new VueRouter({
    routes: [
        { path: '/', redirect: '/home' },
        { path: '/home', component: HomeContainer },
        { path: '/home/content/:id', component: HomeContent },
        { path: '/login', component: LoginContainer },
        { path: '/register', component: Register }
    ],
    linkActiveClass: 'active'
})

export default router 